From d55e91840df0c785f5f309fdc059dbf069095e87 Mon Sep 17 00:00:00 2001 From: "Michael.Fetterman@cl.cam.ac.uk" Date: Wed, 23 Nov 2005 14:56:43 +0100 Subject: [PATCH] Fix regexp in install scripts so it works with sed. sed does not recognize \s as matching whitespace. Fixed two installation scripts which both assumed that it did. --- install.sh | 2 +- tools/check/check_hotplug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 tools/check/check_hotplug diff --git a/install.sh b/install.sh index e7dbfc24b6..74bc7d91b6 100755 --- a/install.sh +++ b/install.sh @@ -28,7 +28,7 @@ cp -fdRL $src/etc/init.d/* $dst/etc/init.d/ echo "All done." [ -x "$(which udevinfo)" ] && \ - UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/') + UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\ \([0-9]\+\)[^0-9]*/\1/') if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then cp -f $src/etc/udev/rules.d/*.rules $dst/etc/udev/rules.d/ diff --git a/tools/check/check_hotplug b/tools/check/check_hotplug old mode 100644 new mode 100755 index aaedb767bf..ba3a80f415 --- a/tools/check/check_hotplug +++ b/tools/check/check_hotplug @@ -7,7 +7,7 @@ function error { exit 1 } [ -x "$(which udevinfo)" ] && \ - UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/') + UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\ \([0-9]\+\)[^0-9]*/\1/') if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then exit 0 -- 2.30.2